﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Add
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <div id="main-content" class="hastable">
		    <div class="title title-spacing">
			    <h2>新增最新消息</h2>
		    </div>
            
           <%using (Html.BeginForm("add", "NewsSetup", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {%>
    <table cellspacing="0" style="width:800px;"> 
		<tr>
			<th style="width:40px" class="center"><b>標題</b></th>
			<td style="width:300px"><%:Html.TextBox("Ntitle","", new { @size = "80" })%></td>
		</tr>
		<tr>
			<th style="width:40px" class="center"><b>內容</b></th>
			<td style="width:300px"><%:Html.TextArea("Ncontent", new { @name = "ckEditor1" })%></td>
		</tr>
        <tr>
			<td colspan="2" class="center">
                <input type="submit" class="submit" value="儲存" />
            </td>
		</tr>
    </table>
    <%} %>

            <br/><br/>　
        </div>
<script language="javascript" type="text/javascript">
    CKEDITOR.replace('Ncontent',
    {
        height: 400,
        skin: 'kama',
        filebrowserImageUploadUrl: '/admin/NewsSetup/ImgUpload',
        toolbarCanCollapse: true,
        toolbar:
        [
            ['Bold', 'Italic', 'Underline', 'Strike', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink', 'Anchor'],
            ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-'],
            ['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'],
            ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', '-', 'TextColor', 'BGColor'],
            ['Styles', 'Format', 'Font', 'FontSize']
        ]
    });
</script>
</asp:Content>
